Api.WriteOutputBit method

Writes a bit into an output of a real or simulated I/O module.

Namespace: IntervalZero.KINGSTAR.OpcUa.Api

Assembly: IntervalZero.KINGSTAR.OpcUa.Api (in IntervalZero.KINGSTAR.OpcUa.Client.dll) Version: 4.4.0.0

Syntax

C#VB
public KsError WriteOutputBit(
       int Index,
       int BitOffset,
       bool Value
)
Public Function WriteOutputBit(
       Index As Integer,
       BitOffset As Integer,
       Value As Boolean
) As KsError

Parameters

Index

Type: int

The index of an I/O module. Indexes are zero based. Aliases affect this parameter.

 

BitOffset

Type: int

Specifies a bit offset to the location to write a bit value. The max offset is determined by OutputLength in the SlaveStatus class.

 

Value

Type: bool

A value to write. true writes one (1) and false writes zero (0).

Return value

Type: KsError

A return code of a method.

Remarks

WriteOutputBit can only be called once a link is established and started.

Usable EtherCAT states

ecatOP

Examples

C#
N/A

See also

Api Class

IntervalZero.KINGSTAR.OpcUa.Api Namespace